import { Controller, Get, Post } from '@nestjs/common';
import { AppService } from './app.service';

@Controller('api')
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('list')
  getHello(): string {
    return this.appService.getHello();
  }

  @Post('list2')
  async getHello2(): Promise</* any[] */ any> {
    // const data = await this.appService.getHello2();
    return 'list2';
  }
}
